var http = require("http")
var data = [];
var server = http.createServer(function(req,res){
	console.log(req.url);
	var str = req.url.split("?");
	str = str[1];
	var arr = str.split("&");
	var one = {};
	arr.forEach(function(o){
	  var $ = o.split("=");
	  one[s[o]] = s[i];
});
	data.push(one);
	console.log(data);
	res.setHeader("Contet-Type","text/html");
	var str = "<table>";
	data.forEach(function(o){
	  str+ ="<tr>";
	  Object.keys(o).forEach(function(m){
		str+ ="<td>"+o[m]+"</td>";
});
	  str+ ="</tr>";
});
	str+ ="</table>";
	res.end(str);
});
server.listen(3000);
